package com.newzqxq.common.enums;

public enum BankCodeVerifyStatusEnums {
     PENDING("PENDING",0,"正在校验中")
    ,SUCCESS("SUCCESS",1,"校验成功")
    ,FAILED("FAILURE",2,"校验失败")
    ;
    private String code;
    private int status; //手机端的状态
    private String message;
    public static BankCodeVerifyStatusEnums getByCode(String code){
        for (BankCodeVerifyStatusEnums enums: BankCodeVerifyStatusEnums.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return null;
    }
    BankCodeVerifyStatusEnums(String code,int status, String message) {
        this.code = code;
        this.message = message;
        this.status = status;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
